package com.globalresources.business.inface;

import java.util.List;

import com.globalresources.po.User;

/**
 * @author aaron.lu(luzhiyuan) E-mail:atyuan.lu@gmail.com
 * @since 创建时间：Jul 16, 2009 12:49:05 AM
 */
public interface IUserService {
	
	/**
	 * load user
	*@author aaron.lu(luzhiyuan)
	*@param username
	*@return
	 */
	public List<User> getUsers(String username);
	
	/**
	 * count users
	*@author aaron.lu(luzhiyuan)
	*@param username
	*@return
	 */
	public int countUsers(String username);
	
	/**
	 * get User By username
	*@author aaron.lu(luzhiyuan)
	*@param username
	*@return
	 */
	public List<User> getUser(String username);
	
	/**
	 * Save User
	*@author songduanlei@gmail.com
	*@param user
	*@return
	 */
	public void saveUser(User user);
	/**
	 * get User By Id
	*@author songduanlei@gmail.com
	*@param String id
	*@return
	 */
	public User getUserById(String id);
	
	
	/**
	 * Save Or Update
	*@author songduanlei@gmail.com
	*@param user
	*@return
	 */
	public void saveOrUpdateUser(User user);
	
	/**
	 * <P>查询用户
	*@author aaron.lu(luzhiyuan)
	*@param params
	*@return
	 */
	public List<User> getUsers(String[] params);
	
	

}
